import request from '@/utils/request'

// 获取路由
export function getQuestion(query) {
    return request({
        url: '/question/',
        method: 'get',
        params: query
    })
}
export function questionId(id) {
    return request({
        url: '/question/' + id + '/',
        method: 'get',
    })
}
//修改判断题
export function updateQuestion(data) {
    return request({
        url: '/question/' + data.id + '/',
        method: 'put',
        data: data
    })
}
// 新增判断题
export function addQuestion(data) {
    return request({
        url: '/question/',
        method: 'post',
        data: data
    })
}
// 删除
export function delQuestion(id) {
    return request({
        url: '/question/' + id + '/',
        method: 'delete',

    })
}